package cuiweiyou.controller;

public class User {
	String name; // 属性名必须和form中input控件的name一致
	String uage;
	Job job; // 2级封装
	
	public User() { // 必须提供一个无参的构造方法（如果没有给出带参的构造方法，则可以省略）
		super();
	}

	public User(String name, String uage, Job job) {
		super();
		this.name = name;
		this.uage = uage;
		this.job = job;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUage() {
		return uage;
	}
	public void setUage(String uage) {
		this.uage = uage;
	}
	public Job getJob() {
		return job;
	}
	public void setJob(Job job) {
		this.job = job;
	}
	
	@Override
	public String toString() {
		return "User [name=" + name + ", uage=" + uage + ", job=" + job + "]";
	}
}

